package data.Map;

import java.io.FileReader;


public class Map 
{
	private int size_x;
	private int size_y;
	private String map_file;
	private Terrain[][] map;
	
	public Map(int x, int y, String file)
	{
		this.size_x = x;
		this.size_y = y;
		this.map_file = file;
		
		map = new Terrain[y][x];
		
		initializeMap();
	}
	
	public Terrain[][] getMap()
	{
		return map;
	}
	
	private GridObject[][] initializeMap()
	{
		FileReader inputStream = null;

        try {
            inputStream = new FileReader(map_file);

            int c;
            while ((c = inputStream.read()) != -1) 
            {
                System.out.print((char) c);
                
                
            }

            inputStream.close();
        } catch(Exception e)
        {
        	
        }
        
		return null;
	}
}
